import { createRouter, createWebHistory } from 'vue-router';
import Home from '@/views/Home.vue';
import About from '@/views/About.vue';
import Cases from '@/views/Cases.vue';
import CourseCenter from '@/views/CourseCenter.vue';
import JoinUs from '@/views/JoinUs.vue';
import Qa from '@/views/Qa.vue';
import QuestionBank from '@/views/QuestionBank.vue';
import Register from '@/views/Register.vue';
import Teachers from '@/views/Teachers.vue';

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/about',
        name: 'About',
        component: About
    },
    {
        path: '/cases',
        name: 'Cases',
        component: Cases
    },
    {
        path: '/course-center',
        name: 'CourseCenter',
        component: CourseCenter
    },
    {
        path: '/join-us',
        name: 'JoinUs',
        component: JoinUs
    },
    {
        path: '/qa',
        name: 'Qa',
        component: Qa
    },
    {
        path: '/question-bank',
        name: 'QuestionBank',
        component: QuestionBank
    },
    {
        path: '/register',
        name: 'Register',
        component: Register
    },
    {
        path: '/teachers',
        name: 'Teachers',
        component: Teachers
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;